package com.hzyc.internetshop.service;

import java.util.List;

import com.hzyc.internetshop.bean.Article;
import com.hzyc.internetshop.bean.Comment;
import com.hzyc.internetshop.bean.Fankui;
import com.hzyc.internetshop.bean.Goods;
import com.hzyc.internetshop.bean.Gys;
import com.hzyc.internetshop.bean.IdList;
import com.hzyc.internetshop.bean.Lianjie;
import com.hzyc.internetshop.bean.Orders;
import com.hzyc.internetshop.bean.Page;
import com.hzyc.internetshop.bean.Question;
import com.hzyc.internetshop.bean.Types;
import com.hzyc.internetshop.bean.User;


public interface TypeService {
		public boolean addType(String type);
		public List<Types> showType();	
		public boolean deletetype(IdList id);
		public boolean addgood(Goods good);
		public boolean addHelp(Question q);
		public boolean addlj(Lianjie lj);
		public boolean deletehelp(String id);
		
		public List<Goods> showgoods(Page page);
		public int getgoodnum();
		public int getljnum();
		public boolean deletegood(String id);
		public boolean updategood(Goods g);
		public boolean updateorder(Orders o);
		public boolean updatefh(String id);
		public Goods getGoodById(String id);
		public Question getHelpById(String id);
		public Orders getOrderById(String id);
		
		public List<Article> showarticles(Page page);
		public Article getArticleById(String id);
		public boolean deletearticle(String id);
		public boolean deleteorder(String id);
		public List<User> selectvip(Page page);
		public int getarticlenum();
		public int getusernum();
		public int gethelpnum();
		public boolean updatehelp(Question q);
		public List<Fankui> getFankuiById(String id);
		public List<Lianjie> showlj(Page page);
		public Lianjie getLjById(String id);
		public boolean updatelj(Lianjie lj);
		public boolean deletelj(String id);
		
		public boolean addgys(String name);
		public List<Gys> showgys();	
		public List<Question> showhelp(Page page);
		public boolean deletegys(IdList id);
		public List<Fankui> showFk();
		public List<Comment> getCommentById(String id);
}
